package singglelnstance;

public class Text1 {
    public static void main(String[] args) {
        //掌握单例设计模式的写法

        A a1 = A.getObject();
        A a2 = A.getObject();
        System.out.println(a1);//singglelnstance.A@1b6d3586        System.out.println(a2);//  singglelnstance.A@1b6d3586

    }
}
